package com.etheart.model;


public class DataModuleException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String key;
	private Object[] values;
	
	public Object[] getValues() {
		return values;
	}

	public void setValues(Object[] values) {
		this.values = values;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
	public DataModuleException(String key,String message) {
		
		super(message);
		this.key=key;
		// TODO Auto-generated constructor stub
	}
	public DataModuleException(String key,String message ,Object o) {
		super(message);
		this.values=new Object[]{o};
		
		this.key=key;
		// TODO Auto-generated constructor stub
	}
	public DataModuleException(String key,String message ,Object[] o) {
		super(message);
		this.values=o;
		
		this.key=key;
		// TODO Auto-generated constructor stub
	}

	public DataModuleException() {
		super();
		// TODO Auto-generated constructor stub
	}

	public DataModuleException(String message, Throwable cause) {
		super(message, cause);
		// TODO Auto-generated constructor stub
	}

	public DataModuleException(String message) {
		super(message);
		// TODO Auto-generated constructor stub
	}

	public DataModuleException(Throwable cause) {
		super(cause);
		// TODO Auto-generated constructor stub
	}

}
